package com.engine4cloud.tdf.supervision.dto.query;

import com.engine4cloud.tdf.common.core.constant.enums.ComplexAuditActionStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 提请撤销缓刑
 *
 * @author wenjie
 * @date 2024-04-25 09:39:53
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "提请撤销缓刑")
public class SpRevokeProbationQueryDTO implements Serializable {

    /**
     * 主键
     */
    @Schema(description = "主键")
    private Long id;

    /**
     * 矫正人员编号
     */
    @Schema(description = "矫正人员编号")
    @NotBlank(message = "矫正人员编号不能为空")
    private String rybh;

    /**
     * 流程编号
     */
    @Schema(description = "流程编号")
    private String lcbh;

    /**
     * 审核动作
     */
    @Schema(description = "审核动作")
    private ComplexAuditActionStatusEnum preAction;

    public SpRevokeProbationQueryDTO(String batch) {
        this.lcbh = batch;
    }

    public SpRevokeProbationQueryDTO(String code, String batch) {
        this.rybh = code;
        this.lcbh = batch;
    }

}